<?php
/*
Template Name: Blue
*/
?>
<?php get_header(); ?>
<div class="left-container-top">
 <div class="innerpage-container-top">
	<?php get_sidebar(); ?>
            
<div class="innerpage-right">
<div class="need-place">
	<a href="#">
		<img src="<?php bloginfo('template_url'); ?>/images/need-design.png" alt="Need" />
	</a>
</div>
			
<!-- Navigation Menu-->
<?php include "navigation-menu.php"; ?>
			
<!--Sub links amd Content -->
<div class="innerpage-right-container">
  <div class="blue-innerpage-right-container-top"></div>
  <div class="blue-innerpage-right-container-center">
			<!--Sub links -->
			<div class="comman-links">
			<ul> 
				<li><a href="<?php bloginfo ( 'url' ); ?>/">Home</a></li>
					<?php if($post->post_parent)
					$children = wp_list_pages('&child_of='.$post->post_parent.'&echo=0&sort_column="ID"&depth=-1&title_li=');
					//$children = wp_list_pages('&child_of='.$post->post_parent.'&echo=0&sort_column=menu_order&sort_order=ASC&depth=-1&title_li=');
					else
					$children = wp_list_pages("title_li=&child_of=".$post->ID."&sort_column='ID'&echo=0&depth=1");
					//$children = wp_list_pages("title_li=&child_of=".$post->ID."&sort_column=menu_order&sort_order=ASC&echo=0");
					
					if ($children) { ?>
					 <?php echo $children; ?>
					<?php } ?>
				</ul>			
			</div>
						
			<!-- Content -->
			<?php include "content.php";?>
							
			</div>
  <div class="blue-innerpage-right-container-bottom"></div>
</div>
			
  </div>
 </div>
</div>
	
	<!-- inner-footer-bottom -->
	<?php include "inner-footer-bottom.php";?>
  
<?php get_footer(); ?>